package com.shuai;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author : 帅宏-coding
 * @version : 1.0
 */
@Component
public class SingletonTest implements CommandLineRunner {
  @Override
  public void run(String... args) throws Exception {
    EagerSingleton singleton_eager = EagerSingleton.getSingleton();
    System.out.println(singleton_eager);
    LayLoadSingletonDCL singleton_lay_load_DCL = LayLoadSingletonDCL.getSingleton();
    System.out.println(singleton_lay_load_DCL);
  }
}
